package com.javasm.finance.service;

import com.javasm.finance.entity.Product;

import java.util.List;

public interface ProdService {
    List<Product> findQueryAll(Integer page, Integer pageSize, String prodName);

    long findTotalNum(String prodName);

    Product findByProdId(Integer prodId);

    int edit(Product product);

    int addProd(Product product);

    Product finQueryProdParent(String prodName);

    List<Product> findQueryProd();

    boolean delete(Integer prodId);

    List<Product> findQueryRelevance(Integer parentId, Integer prodId);

    boolean addRelevance(String relevance,Integer parentId, Integer prodId);

    List<Integer> findQueryRelevanceId(Integer prodId);
}
